<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<div class="admin_form">
  <?php echo form_tag_for($form, '@tesis') ?>
    <?php echo $form->renderHiddenFields() ?>
    
    <input type="hidden" value="<?php echo $wizard->getCurrentStep() ?>" name="paso">

    <?php if ($form->hasGlobalErrors()): ?>
      <?php echo $form->renderGlobalErrors() ?>
    <?php endif; ?>

    <?php include_partial('tesis/form_fieldset_wizard', array('wizard' => $wizard, 'form' => $form)) ?>
 
    <ul class="admin_actions">
      <li><?php echo link_to('Listar','@tesis') ?></li>
      <?php if ($wizard->isLastStep()): ?>
        <li><input name="_previous" type="submit" value="Anterior"></li>
        <li><input name="_save" type="submit" value="Guardar"></li>
        <li><input name="_save_and_add" type="submit" value="Guardar y crear otro"></li>
      <?php elseif ($wizard->isFirstStep()): ?>
        <li><input name="_next" type="submit" value="Siguiente"></li>
      <?php else: ?>
        <li><input name="_previous" type="submit" value="Anterior"></li>
        <li><input name="_next" type="submit" value="Siguiente"></li>
      <?php endif ?>
    </ul>
   
  </form>
</div>
